<%-- 
    Document   : edit
    Created on : May 15, 2011, 3:14:11 PM
    Author     : gerardino
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/Common/header.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd"><%

    Product p = (Product)request.getAttribute("p");
%>
    <a href="/Inventory">Inventarios</a> &Gt; 
    <a href="#" onClick="loadInventory('<%= p.getInventory().getId().getId() %>')"><%= p.getInventory().getName() %></a> &Gt;
    Nuevo producto
    <h1><%= p.getInventory().getName() %></h1>
    <hr>
    <h2>Nuevo producto</h2>
    <form action="/Products/save" method="POST" id="newInventoryFm">
        <input type="hidden" name="iid" value="<%= p.getInventory().getId().getId() %>">
        <table class="form">
            <tr>
                <th>Nombre</th>
                <td><input type="text" maxlength="40" size="40" name="pName" value="<%= p.getName() %>" /></td>
            </tr>
            <tr>
                <th>Descripci&oacute;n</th>
                <td><textarea cols="40" rows="6" name="pDesc" value="<%= p.getDescription() %>" /></td>
            </tr>
        </table>
        <br>
        <p>
            <input type="submit" value="Guardar">
            <input type="button" value="Cancelar" onClick="window.location.reload();">
        </p>
        
    </form>